<div class="modal-body">
    <div id="photo-detail-page">
        <section class="detail-actions">
            <div class="row">
                <div class="col-md-9  detail-title">
                    <h3 class="pull-left">¥{{ $picture->price }}</h3>
                    <div class="pull-left">{{ $picture->name }}</div>
                </div>
                <div class="col-md-3 text-right">
                   @if(Auth::check() && Auth::user()->id != $picture->user_id)
                   <button class="btn btn-success" type="submit" data-picture="{{ $picture->id }}"><i class="glyphicon glyphicon-shopping-cart"></i>购买</button>
                   @else
                   <button class="btn btn-success" type="submit" data-toggle="modal" data-target="#login"></i>购买</button>

                   @endif

                </div>
            </div>

        </section>
        <hr>
        <section class="detail-photo">
            <img src="{{ '/uploads/picture/' . $picture->middle }}" alt="" style="width:100%">
        </section>
        <section class="detail-photographer">
            <div class="row">
                <div class="col-md-6">
                    <a href="/user/xizhinong" class="pull-left">
                        <img class="avatar" src="/img/photographer-01.png">
                    </a>
                    <div class="photographer-info">
                        <a href="/user/babesissy">
                            <h4>{{ $picture->userInfo->firstname . ' ' .  $picture->userInfo->lastname}}</h4>
                        </a>
                    </div>
                </div>
                <div class="col-md-6 action-button">
                    <a href="javascript:void(0);" class="pull-right"><i class="glyphicon glyphicon-download-alt"></i></a>
                    <a href="javascript:void(0);" class="pull-right"><i class="glyphicon glyphicon-share-alt"></i></a>
                </div>
            </div>
        </section>
        <hr>
        <section class="detail-info">
            <div class="row">
                <div class="col-md-7">
                    <h5>关键字:</h5>
                    <p>
                      @if(count($picture->tags) > 0)
                       @foreach($picture->tags as $tag)
                       <a href="javascript:void(0);">{{ $tag }}</a>,
                       @endforeach

                        @endif

                    </p>
                </div>
                <div class="col-md-5">
                    <ul class="unstyled">

                        <li>图片ID: <strong>{{ $picture->sku }}</strong>
                        </li>
                        <li>尺寸: <strong>{{ $picture->width }}x{{ $picture->height }}</strong>
                        </li>
                        <li>相机型号: <strong>{{$picture->exif->Model }}</strong>
                        </li>
                        <li>拍摄时间: <strong>{{$picture->exif->DateTimeDigitized }}</strong>
                        </li>
                        </li>
                    </ul>
                </div>
            </div>

        </section>
    </div>
</div>
